class HttpException extends Error {
  status: number;
  message: string;
  constructor(status?: number, message?: string) {
    super(message);
    this.status = status || 500;
    this.message = message || "internal error";
  }
}

export default HttpException;
